﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChatWindowBox.aspx.cs" Inherits="Main_AjaUtils_ChatWindowBox" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<form runat="server" id="frmChatWindowBox">
<table cellpadding=0 cellspacing=0 style="height:300px;width:300px;">
                    <tr style="background-color:#1874CD;color:White;height:25px;">
                        <td id="chatWindowTitle" align="center" style="font-weight:bold">
                            Chat Window Title
                            
                        </td> 
                        <td align="right">
                            <asp:Label ID="minButton" runat="server" text="-" style="cursor:pointer;text-decoration:underline;font-weight:bold;color:white;font-size:medium;" onclick="hideRoom()"/>                            
                            <asp:Label ID="closeButton" runat="server" text="x" style="cursor:pointer;text-decoration:underline;font-weight:bold;color:white;font-size:medium;" onclick="leaveRoom()"/>                            
                        </td>                     
                        <asp:HiddenField ID="chatWindowRoomID" runat="server" /> 
                        <asp:HiddenField ID="currentUserID" runat="server" />
                        <asp:HiddenField ID="targetUserID" runat="server" />  
                    </tr>
                    <tr>
                        <td id="chatWindowMessagesArea" colspan="2"></td>
                    </tr>
                    <tr style="height:25px;">
                        <td style="width:100%">
                            <asp:TextBox id="chatarea" runat="server" width="100%" onkeydown="if (event.keyCode == 13) alert('you pressed enter!');"/>
                          <%-- <input type="text" name="chatarea" id="chatarea" runat="server" style="width:100%"
                            onkeydown="if (event.keyCode == 13) alert('you pressed enter!');" />     --%>              
                        </td>
                        <td>
                           <input id="sendButton" name="sendButton" type="button" value="Send" runat="server" onclick="sendMessage()"/>
                        </td>  
                    </tr>
                </table>
</form>

